package com.shg.web.ztest;



import org.junit.BeforeClass;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.shg.bean.Users;
import com.shg.service.UsersService;

public class UsersServiceTest {

	private static UsersService usersService;
	
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		ApplicationContext context=new ClassPathXmlApplicationContext("basics-application.xml");
		usersService=(UsersService)context.getBean("usersServiceBean");
	}

	@Test
	public void testSelect() {
//		usersService.getLogin("fengyi", "ff80808135a033220135a033246c0000");FAVORITE2_"."ARTICLE  article
		Users users=null;
		try {
			users = (Users) usersService.select(Users.class, "402890b93899590401389966f7680000");
		} catch (Exception e) {
			e.printStackTrace();
		}
		System.out.println(users.getId());
	}
}
